package com.tqjc.business.interactivewithscan.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @program: C20005_Xianggang_new
 * @description: 设备动作参数表
 * @author: Patienyon
 * @create: 2023-11-01 19:17
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ufc_device_action")
public class DeviceAction extends Model<DeviceAction> {

    private static final long serialVersionUID = 1L;

    /**
     * 设备动作表主键
     */
//    @ApiModelProperty(value = "设备动作表主键", example = "10000", position = 1)
    @TableId
    private Long deviceActionOid;

    /**
     * 设备动作编码
     */
//    @ApiModelProperty(value = "设备动作编码", example = "10000", position = 2)
    @TableId
    private String deviceActionCode;

    /**
     * 默认排行
     */
//    @ApiModelProperty(value = "默认排行", example = "1", position = 3)
    private Integer ranking;

    /**
     * 操作名称
     */
//    @ApiModelProperty(value = "操作名称", example = "左移", position = 4)
    private String operationName;

    /**
     * 是否停用
     */
//    @ApiModelProperty(value = "设备外键", example = "false", position = 5)
    private Long deviceFk;

    /**
     * 命令
     */
//    @ApiModelProperty(value = "命令", example = "Command:86000000000064", position = 3)
    private String command;

    /**
     * 值
     */
//    @ApiModelProperty(value = "值", example = "2000", position = 4)
    private String value;

    /**
     * 结果目标
     */
//    @ApiModelProperty(value = "结果目标", example = "AA", position = 5)
    private String resultGoal;

    /**
     * 值
     */
//    @ApiModelProperty(value = "执行顺序", example = "2000", position = 6)
    private Integer sequence;

    /**
     * 命令类型
     */
//    @ApiModelProperty(value = "命令类型", example = "10000", position = 8)
    private Integer commandType;

    /**
     * 设备类型（1：scada设备，2：扫描型设备）
     */
//    @ApiModelProperty(value = "设备类型（1：scada设备，2：扫描型设备）", example = "10000", position = 8)
    private Integer deviceType;

    /**
     * 是否停用
     */
//    @ApiModelProperty(value = "是否停用", example = "false", position = 6)
    private Boolean state;

    /**
     * 删除标识
     */
//    @ApiModelProperty(value = "删除标识", example = "false", position = 7)
    @TableLogic
    private Boolean del;

    /**
     * 创建时间
     */
//    @ApiModelProperty(value = "创建时间", example = "", position = 8)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}

